package ${ativityPackageName}

import android.os.Bundle
import android.view.LayoutInflater
import com.xm98.core.base.BaseActivity
import com.jess.arms.di.component.AppComponent
import ${componentPackageName}.Dagger${pageName}Component
import ${moudlePackageName}.${pageName}Module
import ${contractPackageName}.${pageName}Contract
import ${presenterPackageName}.${pageName}Presenter
<#assign bindingName><#list "${activityLayoutName}"?split("_") as item>${item?cap_first}</#list>Binding</#assign>
import ${packageName}.databinding.${bindingName}

/**
 * Desc:
 * <p>
 * @author: user()
 * Date: data()
 * Company: @98du
 * Update Comments:
 */
class ${pageName}Activity : BaseActivity<${bindingName}, ${pageName}Presenter>() , ${pageName}Contract.View {

    override fun setupActivityComponent(appComponent:AppComponent) {
        Dagger${pageName}Component
                .builder()
                .appComponent(appComponent)
                .${extractLetters(pageName[0]?lower_case)}${pageName?substring(1,pageName?length)}Module(${pageName}Module(this))
                .build()
                .inject(this)
    }

    override fun getBinding(inflater: LayoutInflater): ${bindingName} {
        return ${bindingName}.inflate(inflater)
    }

    override fun initData(savedInstanceState: Bundle?) {

    }
}
